<template>
    <section>
             
    </section>

</template>

<script>
import api from "@/service/api";
import http from "@/service/http";
import store from "@/store";
import { createNamespacedHelpers } from "vuex";
const { mapActions ,mapGetters} = createNamespacedHelpers("system/role");

export default {
  data() {
    return {
      dialogFormVisible: false,
      loading: false,
      addForm: {
        roleName: "",
        note: ""
      },
      rules: {
        roleName: [
          { required: true, message: "请输入角色名", trigger: "blur" }
        ]
      },
    };
  },
  methods: {
    // //导入actions方法
    // ...mapActions(["getRoles"]),
    // submitForm(formName) { 
    //   this.$refs[formName].validate(valid => {
    //     if (valid) {
    //       var param = {
    //         roleName: this.addForm.roleName,
    //         note: this.addForm.note
    //       };
    //       this.addRole(param);
    //     } else {
    //       return false;
    //     }
    //   });
    // },
    //  resetForm(formName) { 
    //   this.addForm = {}; 
    //   this.$refs[formName].resetFields();
    // },
    // addRole(param) {
    //   this.loading = true;
    //   http.post(api.sysApi.addRole, param).then(data => {
    //     if(!data.success){
		// 		return;
		// 	}
    //     this.$message({
    //       showClose: true,
    //       message: "添加成功",
    //       type: "success"
    //     });
    //     //更新列表
    //     this.getRoles();
    //     this.dialogFormVisible = false;
    //     this.loading = false;
    //   });
    // }
  }
};
</script>

<style>
 

</style>

